package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @description:订单详细
 * @author: ZXX-挚爱
 * @time: 2023/6/12 22:12
 */
@Mapper
public interface OrderDetailMapper {

    void insertBatch(@Param("orderDetailList") List<OrderDetail> orderDetailList);

    @Select("select  *from order_detail where order_id=#{orderId}")
    List<OrderDetail> getOrderId(Long orderId);

}
